home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
bbs
/
pcsuni1.zip
/
VRS502.ZIP
/
VRS-M402.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1997-04-06
|
3KB
|
170 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.2O (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
String STRING001
String STRING002
String STRING003
String STRING004
;------------------------------------------------------------------------------
Goto LABEL001
End
If (0 == 0) STRING001 = "NO"
If (0 == 1) STRING001 = "YES"
EndFunc
:LABEL001
STRING003 = String(PcbNode())
If (PcbNode() == 0) STRING003 = "A"
STRING004 = GetEnv(STRING003 + "RECNO")
STRING004 = ToInteger(STRING004)
DOpen 0, PPEPath() + "USER.DBF", 0
DGo 0, STRING004
:LABEL002
Newline
If (DGet(0, "CASH") < DGet(0, "LEVEL") * 100) Then
PrintLn "@X0CYou don't have enough cash on hand to rent a chamber!@X0F"
PrintLn
Call PPEPath() + "VRS-M19.PPE"
Else
Cls
PrintLn "@X0ASleeping Chamber Stats for ", Year(Date()), ".", Day(Date()), ".", Month(Date())
PrintLn
PrintLn "@X02Base Chamber Deaths@X03············@X09", Random(99)
PrintLn "@X02Secure Chamber Deaths@X03··········@X0E", Random(50)
PrintLn "@X02Impenetrable Chamber Deaths@X03····@X8C", Random(10), "@X0F"
PrintLn
If (DGet(0, "CASH") > DGet(0, "LEVEL") * 250) Then
PrintLn "@X0EConsulting the roster of available sleeping chambers you consider if@X0F "
PrintLn "@X0Ethe higher cost of the more secure tube is your best bet for not waking@X0F"
PrintLn "@X0Eup dead. You have ", Trim(DGet(0, "CASH"), " "), " credits on hand, why be cheap?@X0F"
Endif
PrintLn
If (DGet(0, "CASH") > DGet(0, "LEVEL") * 100) PrintLn " @X0A(@X0DB@X0A)@X02ase Level Chamber @X0A", DGet(0, "LEVEL") * 100, "@POS:48@@X02CR / Night"
If (DGet(0, "CASH") > DGet(0, "LEVEL") * 250) PrintLn " @X0A(@X0DS@X0A)@X02ecure Chamber @X0A", DGet(0, "LEVEL") * 250, "@POS:48@@X02CR / Night"
If (DGet(0, "CASH") > DGet(0, "LEVEL") * 1000) PrintLn " @X0A(@X0DI@X0A)@X02mpenetrable Chamber @X0A", DGet(0, "LEVEL") * 1000, "@POS:48@@X02CR / Night"
PrintLn " @X0A(@X0DQ@X0A)@X02uit back one menu"
PrintLn
InputStr "@X0AYour Choice Soldier @X02> _", STRING002, 10, 1, "BSIQ", 0 + 8
Select Case (STRING002)
Case ""
Goto LABEL002
Case "B"
Backup 80
ClrEol
PrintLn "@X0EQuite a frugal choice there. Good luck, and sleep light!@X0F"
DPut 0, "CASH", DGet(0, "CASH") - DGet(0, "LEVEL") * 100
DPut 0, "VITALITY", "B"
Delay (4 * 182) / 10
Goto LABEL003
Case "S"
Backup 80
ClrEol
PrintLn "@X0EBetter to be safe than sorry!@X0F"
DPut 0, "CASH", DGet(0, "CASH") - DGet(0, "LEVEL") * 250
DPut 0, "VITALITY", "S"
Delay (4 * 182) / 10
Goto LABEL003
Case "I"
Backup 80
ClrEol
PrintLn "@X0EIf you have the money, isn't your security worth it?@X0F"
DPut 0, "CASH", DGet(0, "CASH") - DGet(0, "LEVEL") * 1000
DPut 0, "VITALITY", "I"
Delay (4 * 182) / 10
Goto LABEL003
Case "Q"
Goto LABEL003
Endif
End Select
:LABEL003
DCloseAll
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 1 Cls
; 3 ClrEol
; 18 Goto
; 6 Let
; 20 PrintLn
; 13 If
; 1 InputStr
; 3 Delay
; 1 Newline
; 1 Call
; 3 Backup
; 1 EndFunc
; 1 DOpen
; 1 DCloseAll
; 1 DGo
; 6 DPut
;
;
; ■ Functions used :
;
; 14 *
; 3 /
; 4 +
; 3 -
; 8 ==
; 1 <
; 4 >
; 7 !
; 1 Trim()
; 3 Random()
; 3 Date()
; 1 Year()
; 1 Month()
; 1 Day()
; 1 String()
; 2 PPEPath()
; 2 PcbNode()
; 1 GetEnv()
; 1 ToInteger()
; 20 DGet()
;
;------------------------------------------------------------------------------
;
; Analysis flags : C
;
; C - Call child PPE ■ 3
; This is usually normal, but may be a tricky way to launch some
; sysop-only commands.
; ■ Search for : CALL
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 2 If/Then or If/Then/Else
; 1 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------